import { Loading } from 'element-ui';
// Loading 中的配置项
const loadingOptions = {
    lock: false,
    text: "Loading...",
    background: "transparent",
}

let loadingInstance;
class LoadingEvent {
  show() {
    loadingInstance = Loading.service(loadingOptions)
  }
  hidden() {
    loadingInstance.close()
  }
}
export default new LoadingEvent()